package com.gdou.teaching.mapper;

import com.gdou.teaching.dataobject.ExperimentDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author MelancholyCat
 * @date Created in 21:41 2019-07-27
 * @description ExperimentDetailMapper Interface
 */
@Mapper
@Repository
public interface ExperimentDetailMapper {
//    增
    int addExperimentDetail(ExperimentDetail experimentDetail);
//    删
    boolean deleteExperimentDetail(Integer experimentDetailId);
//    改
    boolean updateExperimentDetail(ExperimentDetail experimentDetail);
//    根据实验详情id查找
    ExperimentDetail selectExperimentDetailById(@Param("experimentDetailId")Integer experimentDetailId);
//    根据实验名称查找
    List<ExperimentDetail> selectExperimentDetailByName(String experimentName);
}
